package com.springboot.middleware.middleware_grab_red_envelopes.model.entity;

import java.math.BigDecimal;
import java.util.Date;

public class RedDetail {
    /**
     * 主键id
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    private Integer id;

    /**
     * 红包记录id
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    private Integer recordId;

    /**
     * 红包随机金额
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    private BigDecimal amount;

    /**
     * 是否有效
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    private Byte isActive;

    /**
     * 创建时间
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    private Date createTime;

    /**
     * 获取主键id
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column red_detail.id
     *
     * @return the value of red_detail.id
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置主键id
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column red_detail.id
     *
     * @param id the value for red_detail.id
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取红包记录id
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column red_detail.record_id
     *
     * @return the value of red_detail.record_id
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public Integer getRecordId() {
        return recordId;
    }

    /**
     * 设置红包记录id
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column red_detail.record_id
     *
     * @param recordId the value for red_detail.record_id
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    /**
     * 获取红包随机金额
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column red_detail.amount
     *
     * @return the value of red_detail.amount
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 设置红包随机金额
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column red_detail.amount
     *
     * @param amount the value for red_detail.amount
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * 获取是否有效
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column red_detail.is_active
     *
     * @return the value of red_detail.is_active
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public Byte getIsActive() {
        return isActive;
    }

    /**
     * 设置是否有效
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column red_detail.is_active
     *
     * @param isActive the value for red_detail.is_active
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public void setIsActive(Byte isActive) {
        this.isActive = isActive;
    }

    /**
     * 获取创建时间
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column red_detail.create_time
     *
     * @return the value of red_detail.create_time
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column red_detail.create_time
     *
     * @param createTime the value for red_detail.create_time
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}